<?php get_header();?>
<!--#include file="header.asp"-->
<div id="content" class="layout">
	
	<?php get_sidebar();?>

  
  <div id="right">

    <div class="right_title">
      <h2>产品展示</h2>
    </div>
    <div class="right_body">
      <?php if ($posts_perpage) { ?>
						<?php $postsperpage = $posts_perpage; ?>
                    <?php } else { ?>
                        <?php $postsperpage = 9; ?>
                    <?php } ?>
        	 
        	  <?php
						$categoryID=$cat;
						$wp_query = new WP_Query('cat=' . $categoryID. 'orderby=date&order=desc&posts_per_page='.$postsperpage.'&paged='.$paged); ?>
        		<ul class="products">
                	<?php while (have_posts()) : the_post(); ?>
				
				
				 <li><?php if(function_exists('wp_thumbnails_for_homepage')) { wp_thumbnails_for_homepage(); } ?><br />
          <p><a href="<?php the_permalink() ?>"  ><?php the_title(); ?></a></p></li>
                  <?php endwhile;?>
                </ul>

	  
	  
      
              
      
      <br />
     
    </div>
<?php pagenav($query_string); ?>    

    
  </div>
  <div class="clear"></div>
</div>
<div id="link" class="layout">
  <ul>
   <li>友情链接</li>
   <li><?php wp_list_bookmarks('title_li=&categorize=0&orderby=rand&limit=24'); ?></li>
  </ul>
</div>
<?php get_footer();?>